package net.betou.trade.entity.main.base;

import java.io.Serializable;

/**
 * 意见类型 "table: trade_suggestion_type"
 * @author O.Y.
 *
 */
public abstract class BaseSuggestionType implements Serializable{

	private static final long serialVersionUID = -2146591116777930425L;
	
	private Integer typeId;
	private String name;//名称
	private String description; //描述
	private int sort;//排序
	
	public BaseSuggestionType() {
		super();
	}
	
	public BaseSuggestionType(Integer typeId) {
		super();
		this.typeId = typeId;
	}
	
	public BaseSuggestionType(Integer typeId, String name, String description, int sort) {
		super();
		this.typeId = typeId;
		this.name = name;
		this.description = description;
		this.sort = sort;
	}
	
	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + ((typeId == null) ? 0 : typeId.hashCode());
		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final BaseSuggestionType other = (BaseSuggestionType) obj;
		if (typeId == null) {
			if (other.typeId != null)
				return false;
		} else if (!typeId.equals(other.typeId))
			return false;
		return true;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public Integer getTypeId() {
		return typeId;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

}
